const app = getApp()
var that, $ = require("../../../utils/helper.js");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    getschool: true
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    that=this
    
  },
  onShow:function(){
    $.check(that)
  },
  init:function(){
    $.post("api/user/get",null,function(data){
      that.setData({user:data})
    })
  },
  clear:function(){
    wx.removeStorageSync("school_id")
    wx.reLaunch({
      url: '/pages/index/index/index',
    })
  }
 
})